package work9Y7D;

import java.util.Arrays;

public class HomeWork05 {
	public static void main(String[] args) {
		int[] array = {11,37,12,72,58};
		int num=0;
		for (int i = 0; i < array.length-1; i++) {
			for (int j = i+1; j < array.length; j++) {
				if (array[i]>array[j]) {
					num=array[j];
					array[j]=array[i];
					array[i]=num;
				}
			}
		}
		System.err.println(Arrays.toString(array));
	}
}
